/**
 * Copyright (c) 2006-2009 by Shanghai UnuTrip Network Technology Development Co.,Ltd
 * All rights reserved.
 */


package com.unusap.remote.register.dto;

import java.util.Collection;
import java.util.HashSet;

import com.unusap.remote.dto.AbstractRequest;
import com.unusap.remote.dto.SP;
import com.unusap.remote.dto.ValueEntry;

/**
 * 
 * @author danson
 * RegisterRequest.java
 * 2009-8-19
 */
public class RegisterRequest extends AbstractRequest {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2664605864630033220L;
	
	/**
	 * 尚无用处，因为registerEntries得name由调用方确定
	 */
	private SP requestSP;
	
	/**
	 * registerEntries的name由被调用方确定
	 */
	private Collection<ValueEntry> registerEntries = new HashSet<ValueEntry>();

	public SP getRequestSP() {
		return requestSP;
	}

	public RegisterRequest setRequestSP(SP requestSP) {
		this.requestSP = requestSP;
		return this;
	}

	public Collection<ValueEntry> getRegisterEntries() {
		return registerEntries;
	}

	public RegisterRequest setRegisterEntries(Collection<ValueEntry> registerEntries) {
		this.registerEntries = registerEntries;
		return this;
	}
	
	public RegisterRequest addRegisterEntry(ValueEntry registerEntry) {
		this.registerEntries.add(registerEntry);
		return this;
	}

}
